package com.yeyks.vip.param;

import com.yeyks.common.annotation.PhoneCheck;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MemberCardEnableOrderPlaceAnOrderParam {

    @ApiModelProperty(value = "卡号")
    @NotBlank
    private String cardNo;
    @ApiModelProperty(value = "卡类型,1vip,2jip")
    @NotNull
    private Integer cardType;

    @ApiModelProperty(value = "姓名")
    @NotBlank
    private String name;
    @ApiModelProperty(value = "电话")
    @NotNull
    @PhoneCheck
    private String phone;
    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "电话销售")
    @PhoneCheck
    private String phoneSell;

}
